package com.acme.bankapp.service.bank;

import com.acme.bankapp.domain.bank.Bank;
import com.acme.bankapp.domain.client.Client;
import com.acme.bankapp.service.exception.FileFormatException;

public class BankReport {
	
	public BankReport(){
		
	}
	
	public void addClient(Bank bank, String str) {
		BankDataLoaderService bankDataLoader = new BankDataLoaderService();
		try {
			Client client = bankDataLoader.readNextClient(str);
			BankApplication.addClient(bank, client);
		} catch (FileFormatException e) {
			System.out.println(e.getMessage());
		}
	}

	public String getBalance(Bank bank) {
		return BankService.getBalance(bank);

	}
}
